import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xwl
 * Date: 2023-04-19
 * Time: 22:47
 */
public class Login {
    // 定义用户名和密码
    private static String name = "xwl";
    private static String passWord = "12345";
    // 构造方法
    public Login (String name ,String passWord) {
        if (!this.name.equals(name)) {
            throw new UserNameException();
        }else if (!this.passWord.equals(passWord)) {
            throw new UserPasswordException();
        }
    }
}
